package src.elevent;

import java.util.Arrays;

public class Example_02 {
    int[] number = {100,80,50,70,20,60};

    public void setNum(int index,int value){
        number[index] = value;
    }

    public int getNum(int index){
        return number[index];
    }


    public static void main(String[] args) {
//        Example_02 example02 = new Example_02();
//        int num = example02.getNum(5);
//        System.out.println(num);
//
//        int num1 = example02.getNum(10);
        try {
            int i = 1 / 0;
        }catch (Exception e){
            System.out.println(e.getMessage());
            System.out.println(e.getLocalizedMessage());
            System.out.println(e.toString());
            e.printStackTrace();
        }

//        int[] array = new int[5];
//        Arrays.fill(array,8);
//        for (int i = 0; i < 6; i++) {
//            System.out.println(array[i]);
//        }

    }
}
